package annotation;

import com.sun.media.jfxmedia.logging.Logger;

/**
 * @author ercai
 * @date 2019/7/24 - 10:01
 */
public class ClassInfoParse {
    public static void parse(){

        Class classz = AnnotationTest.class;
        if (classz.isAnnotationPresent(ClassInfo.class)){
            ClassInfo classInfo = (ClassInfo) classz.getAnnotation(ClassInfo.class);
            AnnotationTest annotationTest = new AnnotationTest();
            System.out.println("调用了注解：参数为" + classInfo.name() );
        }
    }
}
